package org.oneblog.service.tools;

import java.awt.Color;
import java.awt.Font;

public class GroupTextConf {

    private String text;
    private int x;
    private int y;
    private Font font;
    private Color color;
    private Boolean delLine = false;//删除线
    private int type = 1;//1:文字；2：矩形
    private int width;
    private int height;
    public GroupTextConf(String txt, int x, int y, Font font, Color c, Boolean del) {
        super();
        this.x = x;
        this.y = y;
        this.font = font;
        this.color = c;
        this.text = txt;
        this.delLine = del;
    }
    
    public GroupTextConf(int x, int y, int width, int height, Color color, int type) {
        super();
        this.x = x;
        this.y = y;
        this.color = color;
        this.type = type;
        this.width = width;
        this.height = height;
    }

    public int getX() {
        return x;
    }
    public void setX(int x) {
        this.x = x;
    }
    public int getY() {
        return y;
    }
    public void setY(int y) {
        this.y = y;
    }
    public Font getFont() {
        return font;
    }
    public void setFont(Font font) {
        this.font = font;
    }
    public int getXWithRadio(float f) {
        return (int) (this.x * f * .99F);
    }
    public int getYWithRadio(float f) {
        return (int) (this.y * f * 1.017F);
    }
    public Color getColor() {
        return color;
    }
    public void setColor(Color color) {
        this.color = color;
    }
    public String getText() {
        return text;
    }
    public void setText(String text) {
        this.text = text;
    }
    public Boolean getDelLine() {
        return delLine;
    }
    public void setDelLine(Boolean delLine) {
        this.delLine = delLine;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getWidth() {
        return width;
    }

    public void setWidth(int width) {
        this.width = width;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }
    public int getWidthWithRadio(float f) {
        return (int) (this.width * f);
    }
    public int getHeightWithRadio(float f) {
        return (int) (this.height * f);
    }
}
